package com.xuxueli.api.service.tenantjob;

import java.io.Serializable;

/**
 * description:
 * <p>
 * Date: 2019-04-30
 * <p>
 * Time: 10:28
 *
 * @author zhangxin
 */
public class TenantJobInfo implements Serializable{
    private static final long serialVersionUID = -3417604990755434940L;

    private String serverName;
    private String jobName;
    private String executorRouteStrategy = "FAILOVER";
    private String cron;
    private String runType = "BEAN";
    private String jobHandlerBeanName;
    private String executorBlockStrategy = "DISCARD_LATER";
    private long jobHandlerTimeOut = 0;
    private long failRetryTimes = 0;
    private String admin = "admin";
    private String warnEmail;
    private String paramJson;

    /**
     * 服务名字
     */
    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    /**
     * job名称
     */
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    /**
     * 执行器路由策略
     */
    public String getExecutorRouteStrategy() {
        return executorRouteStrategy;
    }

    public void setExecutorRouteStrategy(String executorRouteStrategy) {
        this.executorRouteStrategy = executorRouteStrategy;
    }

    /**
     * cron表达式
     */
    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    /**
     * 运行类型，鼎力云直接写死为：BEAN即可
     */
    public String getRunType() {
        return runType;
    }

    public void setRunType(String runType) {
        this.runType = runType;
    }

    /**
     * job处理bean名称
     */
    public String getJobHandlerBeanName() {
        return jobHandlerBeanName;
    }

    public void setJobHandlerBeanName(String jobHandlerBeanName) {
        this.jobHandlerBeanName = jobHandlerBeanName;
    }

    /**
     * 运行阻塞策略
     */
    public String getExecutorBlockStrategy() {
        return executorBlockStrategy;
    }

    public void setExecutorBlockStrategy(String executorBlockStrategy) {
        this.executorBlockStrategy = executorBlockStrategy;
    }

    /**
     * job运行时间超时设置
     */
    public long getJobHandlerTimeOut() {
        return jobHandlerTimeOut;
    }

    public void setJobHandlerTimeOut(long jobHandlerTimeOut) {
        this.jobHandlerTimeOut = jobHandlerTimeOut;
    }

    /**
     * job运行失败重试次数
     */
    public long getFailRetryTimes() {
        return failRetryTimes;
    }

    public void setFailRetryTimes(long failRetryTimes) {
        this.failRetryTimes = failRetryTimes;
    }

    /**
     * job管理员
     */
    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    /**
     * 报警邮件
     */
    public String getWarnEmail() {
        return warnEmail;
    }

    public void setWarnEmail(String warnEmail) {
        this.warnEmail = warnEmail;
    }

    /**
     * 参数json
     */
    public String getParamJson() {
        return paramJson;
    }

    public void setParamJson(String paramJson) {
        this.paramJson = paramJson;
    }
}
